package com.wyh.service.serviceImpl.gfiveImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wyh.common.result.Result;
import com.wyh.domain.po.gfive.Invoiceconfiguration;
import com.wyh.service.gfive.InvoiceconfigurationService;
import com.wyh.mapper.gfivemapper.InvoiceconfigurationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * @author KmJHHhhhR
 * @description 针对表【invoiceconfiguration(开票配置表)】的数据库操作Service实现
 * @createDate 2024-05-28 10:10:35
 */
@Service
public class InvoiceconfigurationServiceImpl extends ServiceImpl<InvoiceconfigurationMapper, Invoiceconfiguration>
        implements InvoiceconfigurationService {
    @Autowired
    private InvoiceconfigurationMapper invoiceConfigurationMapper;


    @Override
    @Transactional
    public Result add(Invoiceconfiguration invoiceConfiguration) {

        invoiceConfigurationMapper.insert(invoiceConfiguration);

        return Result.success(invoiceConfiguration);
    }


}
